﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="YXExcelReader.aspx.cs" Inherits="YXExcelReader" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../../css/all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function checkInput() {
            var file = document.getElementById("fuImage");
            var fileValue = file.value.substring(file.value.lastIndexOf("."));
            if ( fileValue.toLowerCase() != ".xls") {
                alert("对不起，请上传有效xls文件！");
                return false;
            }
        }
 </script> 
     <style type="text/css">
        html,body
        {
            margin:0px;
            width:auto;
            height:auto;
            overflow-x:hidden;
        }
    </style>
</head>
<body>
   <form id="form1" runat="server">
       

       <table style="margin-top:50px;">
            <tr><td>文件保存路径：</td>
                </tr>
           <tr><td>实物地质数据/</td>
               <td>
       <select id="DataType" runat="server">
           <option value="矿产勘查" selected="selected"></option>
           <option value="区调"  ></option>
       </select></td>
               <td>/档号</td>
               <td><asp:TextBox runat="server" ID="ZL_FILE_ID"></asp:TextBox></td>
               <td>/钻孔</td>
               <td><asp:TextBox runat="server" ID="ZK_CODE"></asp:TextBox></td>
</tr>
           <tr>
               <td colspan="6">
                   <asp:FileUpload ID="fuImage" runat="server"  />

<asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" OnClientClick="return checkInput();" />


               </td>
           </tr>


       </table>
</form>
</body>
</html>
